package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Grade;
import cn.wolfcode.crm.query.QueryForObject;

import java.util.List;

public interface GradeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Grade record);

    Grade selectByPrimaryKey(Long id);

    List<Grade> selectAll();

    int updateByPrimaryKey(Grade record);

    /**
     * 分页
     * @param qo
     * @return
     */
    int queryForCount(QueryForObject qo);

    List<Grade> queryForList(QueryForObject qo);


    void changeState(Long id);
}